package com.mall.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration  //代替spring xml文件，某些第三方的类要纳入spring容器管理 ，需在此类的方法中去实现
public class BeanContainer {

//    @Bean("multipartResolver")
//    public CommonsMultipartResolver getMultipartResolver() {
//        CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
//        multipartResolver.setDefaultEncoding("UTF-8");
//        multipartResolver.setMaxUploadSize(2000000000);
//        return multipartResolver;
//    }
}
